INCLUDES = \
	-I$(top_srcdir) \
	-DG_LOG_DOMAIN=\"xfce4-fish-plugin\" \
	-DPACKAGE_LOCALE_DIR=\"$(localedir)\" \
	$(PLATFORM_CPPFLAGS)

#
# Fish plugin
#
plugin_LTLIBRARIES = libfish.la

plugindir = $(libdir)/xfce4/panel/plugins

libfish_la_SOURCES = \
	fish.c \
	fish.h

libfish_la_CFLAGS = \
	$(LIBXFCE4UTIL_CFLAGS) \
	$(LIBXFCE4UI_CFLAGS) \
	$(LIBXFCE4PANEL_CFLAGS) \
	$(GTK_CFLAGS) \
	$(PLATFORM_CFLAGS)

libfish_la_LDFLAGS = \
       -avoid-version \
       -module \
       -no-undefined \
       -export-symbols-regex '^xfce_panel_module_(preinit|init|construct)' \
       $(PLATFORM_LDFLAGS)

libfish_la_LIBADD = \
	$(LIBXFCE4UTIL_LIBS) \
	$(LIBXFCE4UI_LIBS) \
	$(LIBXFCE4PANEL_LIBS) \
	$(GTK_LIBS)

#
# Desktop file
#
desktopdir = $(datadir)/xfce4/panel/plugins

desktop_DATA = fish.desktop

@INTLTOOL_DESKTOP_RULE@

EXTRA_DIST = fish.desktop.in

CLEANFILES = $(desktop_DATA)

